//
//  ContactDao.h
//  Contacts
//
//  Created by 武 娇 on 14-7-27.
//  Copyright (c) 2014年 李 雷川. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseDao.h"
@class Contact;
@interface ContactDao : BaseDao

-(BOOL)insertContact:(Contact *)contact;
-(BOOL)updateContact:(Contact *)contact;
-(BOOL)deleteContact:(Contact *)contact;
-(BOOL)insertContacts:(NSArray *)contacts;
-(BOOL)updateContacts:(NSArray *)contacts;
-(NSArray *)searchContactsWithKey:(NSString *)key;
-(Contact *)getContactWithUserID:(NSInteger)userID;
-(Contact *)getContactWithContactID:(NSInteger)contactID;
-(NSArray *)getContactsWithDepartmentID:(NSInteger)departmentID;
-(BOOL)clearContacts;
@end
